﻿{layout:default} {class:Shop.Admin.Config.BackUP}
<lbhead>
    <title><%=Tag("数据备份")%>-<%=site.title%></title>
</lbhead>
<lbpath>
<style type="text/css">.mainbody_top{display:none;height:0;overflow:hidden}</style>
    <div class="tools">
    <ul>
    <%if (PageReturnMsg == ""){%>
    <li class="add"><a href="javascript:void(0);" onclick="backup();"><b></b><span><%=Tag("添加")%></span></a></li>
    <li class="del"><a href="javascript:void(0);" onclick="DeleteObj();"><b></b><span><%=Tag("删除")%></span></a></li>
    <li class="config"><a href="javascript:void(0);" onclick="Config();"><b></b><span><%=Tag("配置")%></span></a></li>
    <%}%>
    <li class="name"><span id="navIgation"><%=Tag("当前位置")%>：<a href="<%=site.AdminPath %>/Ajax/ajax_admin.aspx?__Action=MenuJump&pid=0"><%=Tag("管理首页")%></a> > <%=Tag("数据备份")%></span></li>
    </ul>
    </div>
</lbpath>
<lbbody>
    <table id="list" class="datalist">
        <tr class="title">
            <th style="width: 40px" class="selectAll">
                <a href="javascript:void(0);" onclick="$('input[name=\'files\']').attr('checked',!$(this).attr('checked'));$(this).attr('checked',!$(this).attr('checked'));"><%=Tag("全选")%></a>
            </th>
            <th style="width: 250px">
                <%=Tag("名称")%>
            </th>
            <th style="width: 100px">
                <%=Tag("大小")%>(MB)
            </th>
            <th >
                <%=Tag("时间")%>
            </th>
        </tr>
        <%=GetList()%>
    </table>
    <script type="text/javascript">
        function Config() {
            var title_ = "<%=Tag("备份设置")%>";
            var url_ = "backupconfig_window.aspx";
            var width_ = 600;
            var height_ = "auto";
            var modal_ = true;
            EditWindow(title_, url_, width_, height_, modal_);
        }
        function backup() {
            var postData ='';
            var url = "<%=site.AdminPath %>/ajax/ajax_db.aspx?__Action=BackUP_add";
            RequestAjax(url,postData,function(){MsgBox(1, "<%=Tag("操作成功")%>", "?")});
        }
        function DeleteObj() {
            if (!confirm("<%=Tag("确认要删除吗？")%>"))
                return false;
            var postData = GetFormJsonData("del");
            var url = "<%=site.AdminPath %>/ajax/ajax_db.aspx?__Action=BackUP_del";
            RequestAjax(url,postData,function(){MsgBox(1, "<%=Tag("操作成功")%>", "?")});
        }
    </script>
</lbbody>
<lbbottom>
<div class="bottom" id="body_bottom">
    <%=PageString%>
</div>
</lbbottom>